//This file is added by lcl at 2012-09-10
package com.shengyin.ec.service.alliance;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shengyin.ec.model.dao.alliance.ProjectDemandInfoDao;
import com.shengyin.ec.model.entity.ProjectDemandInfo;

@Service("projectDemandInfoService")
public class ProjectDemandInfoServiceImpl implements ProjectDemandInfoService {
	
	@Autowired
	ProjectDemandInfoDao projectDemandInfoDao;

	@Override
	public List<ProjectDemandInfo> getProjectDemandInfoListByCompanyId(long companyId) {
		return projectDemandInfoDao.getProjectDemandInfoListByCompanyId(companyId);
	}
	
	@Override
	public void createProject(ProjectDemandInfo project){
		projectDemandInfoDao.createProject(project);
	}
	
	@Override
	public List<ProjectDemandInfo> getProjectDemandInfoListByBeginTime(long companyId){
		return projectDemandInfoDao.getProjectDemandInfoListByBeginTime(companyId);
	}
	
	@Override
	public List<ProjectDemandInfo> getProjectDemandInfoListByCreateTime(long companyId){
		return projectDemandInfoDao.getProjectDemandInfoListByCreateTime(companyId);
	}
	
	@Override
	public List<ProjectDemandInfo> getAllProjectDemandInfoList(){
		return projectDemandInfoDao.getAllProjectDemandInfoList();
	}
	
	@Override
	public List<ProjectDemandInfo> getAllProjectDemandInfoListByBeginTime(){
		return projectDemandInfoDao.getAllProjectDemandInfoListByBeginTime();
	}
	
	@Override
	public List<ProjectDemandInfo> getAllProjectDemandInfoListByCreateTime(){
		return projectDemandInfoDao.getAllProjectDemandInfoListByCreateTime();
	}
}